/*
 *@Author: 张楚
 *@Date: 2021-08-06 15:09:11
 *@Description: 计算器demo
*/
import 'package:flutter/material.dart';

class ComputerDemo extends StatefulWidget {
  const ComputerDemo({Key key}) : super(key: key);

  @override
  _ComputerDemoState createState() => _ComputerDemoState();
}

class _ComputerDemoState extends State<ComputerDemo> {
  String _text = '';
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('计算器demo'),
      ),
      body: Container(
        padding: EdgeInsets.symmetric(horizontal: 18),
        child: Column(
          children: [
            Expanded(
                child: Container(
                    child: Text(
              '$_text',
              maxLines: 1,
              style: TextStyle(color: Colors.white),
            )))
          ],
        ),
      ),
    );
  }
}
